package com.jctrip.hotel.management.model.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;
import java.util.List;

@ApiModel(value = "查询酒店列表信息-返回值")
@Data
@Builder
public class GetHotelInfoResult {
    @ApiModelProperty(value = "酒店列表")
    private List<HotelInfo> hotelInfoList;

    @ApiModelProperty(value = "酒店总数")
    private Long total;

    @ApiModelProperty(value = "当前页码")
    private Long pageNo;

    @ApiModelProperty(value = "当前页面大小")
    private Long pageSize;

    @ApiModel(value = "查询酒店信息-返回值")
    @Data
    @Builder
    public static class HotelInfo{
        @ApiModelProperty(value = "供应名称")
        private String sourceName;

        @ApiModelProperty(value = "品牌名称")
        private String brandName;

        @ApiModelProperty(value = "酒店编号")
        private String hotelId;

        @ApiModelProperty(value = "酒店名称")
        private String hotelName;

        @ApiModelProperty(value = "酒店地址")
        private String hotelAddress;

        @ApiModelProperty(value = "酒店电话")
        private String hotelTel;

        @ApiModelProperty(value = "所在城市")
        private String cityName;

        @ApiModelProperty(value = "供应状态(0:停售,1:在售)")
        private Integer sourceStatus;

        @ApiModelProperty(value = "是否可售(0:停售,1:在售)")
        private Integer bookStatus;

        @ApiModelProperty(value = "是否可系带外宾(0:不支持,1:支持)")
        private Integer supportForeignGuest;

        @ApiModelProperty(value = "人工备注")
        private String manualNotes;

        @ApiModelProperty(value = "创建时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;

        @ApiModelProperty(value = "变更时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date updateTime;
    }
}
